package com.example.perplonews.a_a_mvp.presenter.presenters

import BasePresenter
import com.example.perplonews.R
import com.example.perplonews.a_a_mvp.contract.UserContract
import com.example.perplonews.a_b_entity.UserItemEntity
import com.example.perplonews.a_b_entity.UserMenuEntity

class UserPresenter(mymodel:UserContract.UserModel,myview:UserContract.UserVIew):BasePresenter<UserContract.UserModel,UserContract.UserVIew>(mymodel, myview) {
    //初始化数据方法
    fun iniitemtData() {
        val menues: MutableList<UserMenuEntity> = ArrayList<UserMenuEntity>()
        menues.add(UserMenuEntity(R.mipmap.res_icon7_274, "消息", null))
        menues.add(UserMenuEntity(R.mipmap.res_icon7_275, "收藏", null))
        menues.add(UserMenuEntity(R.mipmap.res_icon7_277, "评论", null))
        menues.add(UserMenuEntity(R.mipmap.res_icon7_276, "历史", null))
        menues.add(UserMenuEntity(R.mipmap.res_icon7_276, "关注", null))
        menues.add(UserMenuEntity(R.mipmap.res_icon7_279, "下载", null))
        menues.add(UserMenuEntity(R.mipmap.res_icon7_280, "公益", null))
        menues.add(UserMenuEntity(R.mipmap.res_icon7_281, "问政", null))

        val itemes: MutableList<UserItemEntity> = ArrayList<UserItemEntity>()
        itemes.add(UserItemEntity("积分商城", false))
        itemes.add(UserItemEntity("夜间模式", false))
        itemes.add(UserItemEntity("意见反馈", false))
        itemes.add(UserItemEntity("更多设置", false))
        myview.refreshMenu(menues as ArrayList<UserMenuEntity>, itemes as ArrayList<UserItemEntity>)


    }
}